<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::RenderQueue类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">1.0.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_render_queue.html">RenderQueue</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_sky_engine2d_1_1_render_queue-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::RenderQueue类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>渲染队列  
 <a href="class_sky_engine2d_1_1_render_queue.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_render_queue_8h_source.html">RenderQueue.h</a>&gt;</code></p>
<div class="dynheader">
类 SkyEngine2d::RenderQueue 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_sky_engine2d_1_1_render_queue.png" usemap="#SkyEngine2d::RenderQueue_map" alt=""/>
  <map id="SkyEngine2d::RenderQueue_map" name="SkyEngine2d::RenderQueue_map">
<area href="class_sky_engine2d_1_1_non_copyable.html" title="不可拷贝对象的基类" alt="SkyEngine2d::NonCopyable" shape="rect" coords="0,0,171,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a38b6444de3cb42aadf43e90925dcd00f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#a38b6444de3cb42aadf43e90925dcd00f">Type</a> { <a class="el" href="class_sky_engine2d_1_1_render_queue.html#a38b6444de3cb42aadf43e90925dcd00fa8eac57aa132cff7d46454e270465b365">GLOABL_ZORDER_LOW</a> = 0, 
<a class="el" href="class_sky_engine2d_1_1_render_queue.html#a38b6444de3cb42aadf43e90925dcd00facfce1a1ae430b1daf30b8f9f7e5c7cd6">GLOABL_ZORDER_ZERO</a> = 1, 
<a class="el" href="class_sky_engine2d_1_1_render_queue.html#a38b6444de3cb42aadf43e90925dcd00faf8b7c985b5d8b99701ef2d1fd36c3309">GLOABL_ZORDER_PRECEDENCE</a> = 2, 
<a class="el" href="class_sky_engine2d_1_1_render_queue.html#a38b6444de3cb42aadf43e90925dcd00fa55da6113c0fc3fed5c52972b846b08f4">QUEUE_COUNT</a>
 }</td></tr>
<tr class="memdesc:a38b6444de3cb42aadf43e90925dcd00f"><td class="mdescLeft">&#160;</td><td class="mdescRight">渲染队列的类型  <a href="class_sky_engine2d_1_1_render_queue.html#a38b6444de3cb42aadf43e90925dcd00f">更多...</a><br /></td></tr>
<tr class="separator:a38b6444de3cb42aadf43e90925dcd00f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b8be00c30dbc11ec1bfeb37db4ec95d"><td class="memItemLeft" align="right" valign="top"><a id="a6b8be00c30dbc11ec1bfeb37db4ec95d"></a>
typedef <a class="el" href="class_sky_engine2d_1_1_render_command.html">RenderCommand</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>RenderCommandPtr</b></td></tr>
<tr class="separator:a6b8be00c30dbc11ec1bfeb37db4ec95d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a5e9cbfd946a1383aa158fe3d372c1304"><td class="memItemLeft" align="right" valign="top"><a id="a5e9cbfd946a1383aa158fe3d372c1304"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#a5e9cbfd946a1383aa158fe3d372c1304">RenderQueue</a> ()</td></tr>
<tr class="memdesc:a5e9cbfd946a1383aa158fe3d372c1304"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造 <br /></td></tr>
<tr class="separator:a5e9cbfd946a1383aa158fe3d372c1304"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a523ab68628656365ed1fdfbe6828b97c"><td class="memItemLeft" align="right" valign="top"><a id="a523ab68628656365ed1fdfbe6828b97c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#a523ab68628656365ed1fdfbe6828b97c">~RenderQueue</a> ()</td></tr>
<tr class="memdesc:a523ab68628656365ed1fdfbe6828b97c"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:a523ab68628656365ed1fdfbe6828b97c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac107acc1c84d2fac7d45ae9fccb57244"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#ac107acc1c84d2fac7d45ae9fccb57244">pushRenderCommand</a> (<a class="el" href="class_sky_engine2d_1_1_render_command.html">RenderCommandPtr</a> cmd)</td></tr>
<tr class="memdesc:ac107acc1c84d2fac7d45ae9fccb57244"><td class="mdescLeft">&#160;</td><td class="mdescRight">加入一条渲染命令  <a href="#ac107acc1c84d2fac7d45ae9fccb57244">更多...</a><br /></td></tr>
<tr class="separator:ac107acc1c84d2fac7d45ae9fccb57244"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af48d72d435bb0080ae40708288df0f91"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#af48d72d435bb0080ae40708288df0f91">getSize</a> () const</td></tr>
<tr class="memdesc:af48d72d435bb0080ae40708288df0f91"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取渲染命令的数量  <a href="#af48d72d435bb0080ae40708288df0f91">更多...</a><br /></td></tr>
<tr class="separator:af48d72d435bb0080ae40708288df0f91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fc5ee6acea83a8ea175cdfb2db9cb28"><td class="memItemLeft" align="right" valign="top"><a id="a0fc5ee6acea83a8ea175cdfb2db9cb28"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#a0fc5ee6acea83a8ea175cdfb2db9cb28">sort</a> ()</td></tr>
<tr class="memdesc:a0fc5ee6acea83a8ea175cdfb2db9cb28"><td class="mdescLeft">&#160;</td><td class="mdescRight">按照全局顺序排序 <br /></td></tr>
<tr class="separator:a0fc5ee6acea83a8ea175cdfb2db9cb28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1e8098226aad92630d3e58bc8efc68f"><td class="memItemLeft" align="right" valign="top"><a id="ad1e8098226aad92630d3e58bc8efc68f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#ad1e8098226aad92630d3e58bc8efc68f">clear</a> ()</td></tr>
<tr class="memdesc:ad1e8098226aad92630d3e58bc8efc68f"><td class="mdescLeft">&#160;</td><td class="mdescRight">清空queue <br /></td></tr>
<tr class="separator:ad1e8098226aad92630d3e58bc8efc68f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b96b72ab7b2510d25fe6abdc3140f4c"><td class="memItemLeft" align="right" valign="top"><a id="a2b96b72ab7b2510d25fe6abdc3140f4c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#a2b96b72ab7b2510d25fe6abdc3140f4c">saveRenderState</a> ()</td></tr>
<tr class="memdesc:a2b96b72ab7b2510d25fe6abdc3140f4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">保存渲染状态 <br /></td></tr>
<tr class="separator:a2b96b72ab7b2510d25fe6abdc3140f4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa67f82194b69a808a0f558ffd16f28c9"><td class="memItemLeft" align="right" valign="top"><a id="aa67f82194b69a808a0f558ffd16f28c9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#aa67f82194b69a808a0f558ffd16f28c9">restoreRenderState</a> ()</td></tr>
<tr class="memdesc:aa67f82194b69a808a0f558ffd16f28c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">恢复之前的渲染状态 <br /></td></tr>
<tr class="separator:aa67f82194b69a808a0f558ffd16f28c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a346dd120ea713c148ab2d1672c39a59b"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="class_sky_engine2d_1_1_render_command.html">RenderCommandPtr</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#a346dd120ea713c148ab2d1672c39a59b">getRenderQueue</a> (<a class="el" href="class_sky_engine2d_1_1_render_queue.html#a38b6444de3cb42aadf43e90925dcd00f">Type</a> queue_type)</td></tr>
<tr class="memdesc:a346dd120ea713c148ab2d1672c39a59b"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取指令  <a href="#a346dd120ea713c148ab2d1672c39a59b">更多...</a><br /></td></tr>
<tr class="separator:a346dd120ea713c148ab2d1672c39a59b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>渲染队列 </p>
</div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="a38b6444de3cb42aadf43e90925dcd00f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38b6444de3cb42aadf43e90925dcd00f">&#9670;&nbsp;</a></span>Type</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_sky_engine2d_1_1_render_queue.html#a38b6444de3cb42aadf43e90925dcd00f">SkyEngine2d::RenderQueue::Type</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>渲染队列的类型 </p>
<p>按照渲染命令的全局Z顺序进行分类 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a38b6444de3cb42aadf43e90925dcd00fa8eac57aa132cff7d46454e270465b365"></a>GLOABL_ZORDER_LOW&#160;</td><td class="fielddoc"><p>z 顺序小于0. </p>
</td></tr>
<tr><td class="fieldname"><a id="a38b6444de3cb42aadf43e90925dcd00facfce1a1ae430b1daf30b8f9f7e5c7cd6"></a>GLOABL_ZORDER_ZERO&#160;</td><td class="fielddoc"><p>z 顺序等于0. </p>
</td></tr>
<tr><td class="fieldname"><a id="a38b6444de3cb42aadf43e90925dcd00faf8b7c985b5d8b99701ef2d1fd36c3309"></a>GLOABL_ZORDER_PRECEDENCE&#160;</td><td class="fielddoc"><p>z 顺序大于0. </p>
</td></tr>
<tr><td class="fieldname"><a id="a38b6444de3cb42aadf43e90925dcd00fa55da6113c0fc3fed5c52972b846b08f4"></a>QUEUE_COUNT&#160;</td><td class="fielddoc"><p>类型的总数. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a346dd120ea713c148ab2d1672c39a59b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a346dd120ea713c148ab2d1672c39a59b">&#9670;&nbsp;</a></span>getRenderQueue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="class_sky_engine2d_1_1_render_command.html">RenderCommandPtr</a>&gt;&amp; SkyEngine2d::RenderQueue::getRenderQueue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_sky_engine2d_1_1_render_queue.html#a38b6444de3cb42aadf43e90925dcd00f">Type</a>&#160;</td>
          <td class="paramname"><em>queue_type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取指令 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Type</td><td>queue_type 指令队列的类型 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>const std::vector&lt;RenderQueue::RenderCommandPtr&gt;&amp; </dd></dl>

</div>
</div>
<a id="af48d72d435bb0080ae40708288df0f91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af48d72d435bb0080ae40708288df0f91">&#9670;&nbsp;</a></span>getSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t SkyEngine2d::RenderQueue::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取渲染命令的数量 </p>
<dl class="section return"><dt>返回</dt><dd>size_t </dd></dl>

</div>
</div>
<a id="ac107acc1c84d2fac7d45ae9fccb57244"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac107acc1c84d2fac7d45ae9fccb57244">&#9670;&nbsp;</a></span>pushRenderCommand()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::RenderQueue::pushRenderCommand </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_sky_engine2d_1_1_render_command.html">RenderCommandPtr</a>&#160;</td>
          <td class="paramname"><em>cmd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>加入一条渲染命令 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RenderCommandPtr</td><td>cmd 渲染命令 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/render/<a class="el" href="_render_queue_8h_source.html">RenderQueue.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
